﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DapperExtensions.Mapper;
using ZLWeb.WebApiEntityBase;

namespace WeChatCardProxy.WebApiEntity
{
    public class Authorization_info : ResponseResultInfo
    {
        public string authorizer_appid { get; set; }

        public string authorizer_access_token { get; set; }

        public string authorizer_refresh_token { get; set; }

        public DateTime expires_Time { get; set; }

        public DateTime UpdateTime { get; set; }
    }

    public class Authorization_infoMapper : ClassMapper<Authorization_info>
    {
        public Authorization_infoMapper()
        {
            Table("Authorization_info");
            Map(f => f.authorizer_appid).Column("authorizer_appid").Key(KeyType.Assigned);
            Map(f => f.authorizer_access_token).Column("authorizer_access_token");
            Map(f => f.authorizer_refresh_token).Column("authorizer_refresh_token");
            Map(f => f.expires_Time).Column("expires_Time");
            Map(f => f.UpdateTime).Column("UpdateTime");
        }
    }
}
